/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1studentdemo;

/**
 *
 * @author apple
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Student s1=new Student("Mike");
        Student s2=new Student("John",25,18);
        Student s3=new Student();
        
        s1.setName("Mickle");
        System.out.println(s1.getName());
        
        s2.setName("Johny");
        System.out.println(s2.getName());
        
        s1.study();
        s2.study();
        
        
        
    }
    
}
